import createPersistedState from 'vuex-persistedstate';

import Vue from 'vue';
import Vuex from 'vuex';
import header from './Header';
import student from './Student';
import login from './Login';
import teacher from './Teacher';
Vue.use(Vuex);
const modules = {
  header,
  student,
  teacher,
  login
};
export default new Vuex.Store({
  modules,
  plugins: [createPersistedState()]
});
